package com.lujianing.cmd;

public class ConnectionTimesModel {

	private double min;
	private double mean;
	private double sd;
	private double median;
	private double max;
	private double[] data;

	public double getSd() {
		return sd;
	}

	public void setSd(double sd) {
		this.sd = sd;
	}

	/**
	 * @return the max
	 */
	public double getMax() {
		return max;
	}

	/**
	 * @param max
	 *            the max to set
	 */
	public void setMax(double max) {
		this.max = max;
	}

	/**
	 * @return the min
	 */
	public double getMin() {
		return min;
	}

	/**
	 * @param min
	 *            the min to set
	 */
	public void setMin(double min) {
		this.min = min;
	}

	/**
	 * @return the mean
	 */
	public double getMean() {
		return mean;
	}

	/**
	 * @param mean
	 *            the mean to set
	 */
	public void setMean(double mean) {
		this.mean = mean;
	}

	/**
	 * @return the median
	 */
	public double getMedian() {
		return median;
	}

	/**
	 * @param median
	 *            the median to set
	 */
	public void setMedian(double median) {
		this.median = median;
	}

	public double[] getData() {
		data=new double[5];
		data[0]=min;
		data[1]=mean;
		data[2]=sd;
		data[3]=median;
		data[4]=max;
		return data;
	}

	public void setData(double[] data) {
		this.data = data;
	}
}
